package com.fenxiangtech.mall.model;

import java.math.BigDecimal;
import java.util.Date;

public class Order {

        //自增id
        private Long id;
        //订单号
        private String orderNo;
        //外键，用户id，注意并不是openid
        private Long userId;
        //
        private BigDecimal totalPrice;
        //1:未支付， 2：已支付，3：已发货 , 4: 已支付，但库存不足
        private Integer status;
        //订单快照图片
        private String snapImg;
        //订单快照名称
        private String snapName;
        //
        private Integer totalCount;
        //订单其他信息快照（json)
        private String snapItems;
        //地址快照
        private String snapAddress;
        //订单微信支付的预订单id（用于发送模板消息）
        private String prepayId;
        //更新时间 
        private Date updateTime;
        //创建时间 
        private Date createTime;


        public Long getId() {
                return id;
        }

        public Order setId(Long id) {
                this.id = id;
                return this;
        }

        public String getOrderNo() {
                return orderNo;
        }

        public Order setOrderNo(String orderNo) {
                this.orderNo = orderNo;
                return this;
        }

        public Long getUserId() {
                return userId;
        }

        public Order setUserId(Long userId) {
                this.userId = userId;
                return this;
        }

        public BigDecimal getTotalPrice() {
                return totalPrice;
        }

        public Order setTotalPrice(BigDecimal totalPrice) {
                this.totalPrice = totalPrice;
                return this;
        }

        public Integer getStatus() {
                return status;
        }

        public Order setStatus(Integer status) {
                this.status = status;
                return this;
        }

        public String getSnapImg() {
                return snapImg;
        }

        public Order setSnapImg(String snapImg) {
                this.snapImg = snapImg;
                return this;
        }

        public String getSnapName() {
                return snapName;
        }

        public Order setSnapName(String snapName) {
                this.snapName = snapName;
                return this;
        }

        public Integer getTotalCount() {
                return totalCount;
        }

        public Order setTotalCount(Integer totalCount) {
                this.totalCount = totalCount;
                return this;
        }

        public String getSnapItems() {
                return snapItems;
        }

        public Order setSnapItems(String snapItems) {
                this.snapItems = snapItems;
                return this;
        }

        public String getSnapAddress() {
                return snapAddress;
        }

        public Order setSnapAddress(String snapAddress) {
                this.snapAddress = snapAddress;
                return this;
        }

        public String getPrepayId() {
                return prepayId;
        }

        public Order setPrepayId(String prepayId) {
                this.prepayId = prepayId;
                return this;
        }

        public Date getUpdateTime() {
                return updateTime;
        }

        public Order setUpdateTime(Date updateTime) {
                this.updateTime = updateTime;
                return this;
        }

        public Date getCreateTime() {
                return createTime;
        }

        public Order setCreateTime(Date createTime) {
                this.createTime = createTime;
                return this;
        }
}